package com.houseService.service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.houseService.common.core.page.TableDataInfo;
import com.houseService.common.utils.PageUtils;
import com.houseService.service.domain.Services;
import com.houseService.service.vo.ServicesVo;
import com.houseService.service.mapper.ServicesMapper;
import com.houseService.service.service.IServicesService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 服务项目管理Service业务层处理
 *
 * @author Tellsea
 * @date 2025-03-19
 */
@Service
public class ServicesServiceImpl extends ServiceImpl<ServicesMapper, Services> implements IServicesService {

    @Override
    public TableDataInfo<ServicesVo> queryList(ServicesVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ServicesVo> queryAll(ServicesVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ServicesVo queryById(String id) {
        return this.baseMapper.queryById(id);
    }
}
